from basic_module import CombatGame

# Computer 1
game1 = CombatGame()

#for line in xrange(4):
#    for row in xrange(10):
#        for nome in ['Marshal','General','Colonel','Major','Captain','Lieutenant',
#                     'Sergeant', 'Miner','Scout','Spy','Bomb','Flag']:
game1.add_piece('Marshal', 3,0)
game1.add_piece('General', 3,1)
        
#print '\nGame1:\n',game1.table,'\n'


if game1.attack_button(3,0):
    print 'Now we can attack\n'
print game1.where_attack(3,0)

#game1.change_status(2)

#game1.attack_to(3,0,2,0)
#print game1.table.get(3,0)
#print game1.table.get(2,0)
#print game1.enemy_graveyard
#print game1.allied_graveyard

#print '\nGame1:\n',game1.table,'\n'
###############################################
print game1.table.get(3,0)
print game1.table.get(4,0)
game1.move(3,0,4,0)
print game1.table.get(3,0)
print game1.table.get(4,0)

game1.move(4,0,3,0)
print game1.backward_count,'\n'
#print game1.table.get(3,0)
#print game1.table.get(4,0)
#game1.move(3,0,3,1)
#game1.move(3,1,3,0)
###############################################
print game1.table.get(3,0)
print game1.table.get(4,0)
game1.move(3,0,4,0)
print game1.table.get(3,0)
print game1.table.get(4,0)

game1.move(4,0,3,0)
print game1.backward_count,'\n'
#################################################
print game1.table.get(3,0)
print game1.table.get(4,0)
game1.move(3,0,4,0)
print game1.table.get(3,0)
print game1.table.get(4,0)

game1.move(4,0,3,0)
print game1.backward_count,'\n'
###################################################
print game1.table.get(3,0)
print game1.table.get(4,0)
game1.move(3,0,4,0)
print game1.table.get(3,0)
print game1.table.get(4,0)

game1.move(4,0,3,0)
print game1.backward_count,'\n'